﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ApplicationObject.aspx.cs" Inherits="ApplicationObject" %>

<%@ Register src="UserControl/TimeControl.ascx" tagname="TimeControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <uc1:TimeControl ID="TimeControl1" runat="server" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:TextBox ID="TxtMainChat" runat="server" TextMode ="MultiLine" 
            Enabled="False" Height="193px"
            Width="70%" ></asp:TextBox>
                <asp:Timer ID="Timer1" runat="server" Interval="10000">
                </asp:Timer>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br /><br />
        <asp:TextBox ID="TxtText" runat="server" Width="65%"></asp:TextBox>
        <asp:Button ID="BtnGo" runat="server" Text="Go" onclick="BtnGo_Click" 
            Width="5%" />
        <asp:RequiredFieldValidator ID="rvText" runat="server" 
            ControlToValidate="TxtText" ErrorMessage="Please Enetr the text">*</asp:RequiredFieldValidator>
        <br /><br />
        <asp:TextBox ID="TxtUserName" runat="server" Width="30%"></asp:TextBox>
    &nbsp;
        <asp:RequiredFieldValidator ID="rvUserName" runat="server" 
            ControlToValidate="TxtUserName" ErrorMessage="Enter the username">*</asp:RequiredFieldValidator>
&nbsp;User Name<asp:Button ID="BtnFlushChat" runat="server" Text="Flush Chat" 
            CausesValidation="False" onclick="BtnFlushChat_Click" />
    </div>
    <a href="Default.aspx">Back</a>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
        ShowMessageBox="True" ShowSummary="False" />
    </form>
</body>
</html>
